#include<iostream>
#include<cmath>
using namespace std;
int n, m;
const int N = 1e4;
long long arr[N][N];
int main()
{
	while (cin >> n >> m) {
		int Max = 0;
		int x = 0, y = 0;
		int res = 0;
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				cin >> arr[i][j];
				if (abs(arr[i][j]) > Max) {
					x = i + 1;
					y = j + 1;
					Max = abs(arr[i][j]);
					res = arr[i][j];
				}
			}
		}
		cout << x << " " << y << " " << res << endl;
	}
	return 0;
}